package com.jf.assistant;

import android.content.Context;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.RelativeLayout;

public class JfRe  extends RelativeLayout {
    public JfRe(Context context) {
        super(context);
    }

    public JfRe(Context context, AttributeSet attrs) {
        super(context, attrs);




    }

    public JfRe(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);


    }

    public JfRe(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);

        //attributeHelper.getValue()


    }

    @Override
    public void setPadding(int left, int top, int right, int bottom) {

        super.setPadding(left, top, right, bottom);
        //JfLog.logger("jfre 设置pading left："+left +" top:"+top+" right:"+right+" bottom:"+bottom);
    }


    @Override
    public void setLayoutParams(ViewGroup.LayoutParams params) {

        ViewGroup.MarginLayoutParams rlp = (MarginLayoutParams) params;
        JfLog.logger("jfre setLayoutParams height："+params.height +" with:"+params.width);
        rlp.width= rlp.width*2;
        rlp.height=rlp.height*2;

        super.setLayoutParams(rlp);
    }





}
